package com.cf.conf.core;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.UUID;

/**
 * game-server-ZConfProperty
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/6/8 下午 03:43
 */
@ConfigurationProperties("zmm.conf")
public class ZConfProperty {

    /**
     * 区分同一个应用的不同环境
     */
    private String profile = "dev";

    /**
     * namespace,区分多个应用
     */
    private String app = "default";

    /**
     * 属性设置错误是否抛出异常
     */
    private boolean errorOnValueError = false;

    /**
     * 是否开启界面
     */
    private boolean web = false;

    public boolean isErrorOnValueError() {
        return errorOnValueError;
    }

    public boolean isWeb() {
        return web;
    }

    public void setWeb(boolean web) {
        this.web = web;
    }

    public boolean getErrorOnValueError() {
        return errorOnValueError;
    }

    public void setErrorOnValueError(boolean errorOnValueError) {
        this.errorOnValueError = errorOnValueError;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }
}
